package io.lkt.modules.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.lkt.modules.sys.dao.BSlideshowInfoDao;
import io.lkt.modules.sys.entity.BSlideshowInfoEntity;
import io.lkt.modules.sys.service.BSlideshowInfoService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("BSlideshowInfoService")
public class BSlideshowInfoServiceImpl extends ServiceImpl<BSlideshowInfoDao, BSlideshowInfoEntity> implements BSlideshowInfoService {
    @Override
    public List<BSlideshowInfoEntity> getList(Map<String, Object> params) {
        return getBaseMapper().getList(params);
    }

    @Override
    public int getListTotal(Map<String, Object> params) {
        Integer total = getBaseMapper().getListTotal(params);
        return total == null ? 0 : total.intValue();
    }
}
